]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Resolve immediately after loading the background
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 28 Nov 2025 00:43:33 +0000 (01:43 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Dec 2025 18:39:44 +0000 (18:39 +0000)
We currently resolve the promise in a low-priority idle handler
after the background was loaded, so that the system can settle
down after the initial load before doing the animation.

Promises are already resolved on the main loop (albeit with
a high priority), so hopefully the explicit idle source isn't
necessary anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3988>

js/ui/layout.js

index 4fd23fe3273401d44e872580310d782d524d4f17..5a09ea797c1c6bfc4c851186dae4589df7e393ef 100644 (file)
@@ -681,18 +681,7 @@ export const LayoutManager = GObject.registerClass({
         const {promise, resolve} = Promise.withResolvers();
         const signalId = this._systemBackground.connect('loaded', () => {
             this._systemBackground.disconnect(signalId);
-
-            // We're mostly prepared for the startup animation
-            // now, but since a lot is going on asynchronously
-            // during startup, let's defer the startup animation
-            // until the event loop is uncontended and idle.
-            // This helps to prevent us from running the animation
-            // when the system is bogged down
-            const id = GLib.idle_add(GLib.PRIORITY_LOW, () => {
-                resolve();
-                return GLib.SOURCE_REMOVE;
-            });
-            GLib.Source.set_name_by_id(id, '[gnome-shell] Startup Animation');
+            resolve();
         });
 
         await promise;